﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.EntityClient;

namespace LIM
{
	class LIMS_EntityConnection
	{
        public static EntityConnection Create_LIMS_EntityConnection()
        {
            EntityConnectionStringBuilder entityBuilder = new EntityConnectionStringBuilder();
            entityBuilder.ProviderConnectionString = cls_Registry.Get_DatabaseConnectionString();
            entityBuilder.Provider = "System.Data.SqlClient";
            entityBuilder.Metadata = @"res://*/model.LIMS_EntityDataModel.csdl|res://*/model.LIMS_EntityDataModel.ssdl|res://*/model.LIMS_EntityDataModel.msl";

            return new EntityConnection(entityBuilder.ToString());
        }
	}
}
